package com.atguigu.tingshu.common.threadpool;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "thread.pool")
public class ThreadPoolProperties {

    private Integer corePoolSize = Runtime.getRuntime().availableProcessors() * 2; // 初始值
    private Integer maxPoolSize = corePoolSize;
    private Integer queueSize = 1000;
}
